]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
iconGrid: Fix a typo
authorCarlos Soriano <carlos.soriano89@gmail.com>
Tue, 2 Sep 2014 21:24:19 +0000 (23:24 +0200)
committerCarlos Soriano <carlos.soriano89@gmail.com>
Tue, 2 Sep 2014 21:24:19 +0000 (23:24 +0200)
It was making icons of the spring animation going/returning to the wrong
position of the dash icon.

js/ui/iconGrid.js

index cd2917358c1f0b62b2df99534ce252cdd659342f..0fc628ec2481fb150d6d3c9c0574e272f8a674a1 100644 (file)
@@ -519,7 +519,7 @@ const IconGrid = new Lang.Class({
             actorClone.set_size(width, height);
             let scaleX = sourceScaledWidth / width;
             let scaleY = sourceScaledHeight / height;
-            let [adjustedSourcePositionX, adjustedSourcePositionY] = [sourceCenterX - sourceScaledWidth / 2, sourceY - sourceScaledHeight / 2];
+            let [adjustedSourcePositionX, adjustedSourcePositionY] = [sourceCenterX - sourceScaledWidth / 2, sourceCenterY - sourceScaledHeight / 2];
 
             // Defeat onComplete anonymous function closure
             let isLastItem = index == actors.length - 1;